<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="/css/common/add2.css"/>
<link rel="stylesheet" href="/css/common/list.css"/>

<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-1.8.3.js"></script>
<#--<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-2.1.1.js"></script>-->
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/plugin/layer-v1.9.2/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/common/common.js"></script>

<#--<link rel="stylesheet" href="${ctx}/plugin/combo/select/css/combo.select.css" type="text/css"/>-->
<script type="text/javascript" src="${ctx}/plugin/My97DatePicker/WdatePicker.js"></script>

<link rel="stylesheet" type="text/css" href="${ctx}/css/mune/superfish.css" media="screen">
<#--<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>-->
<#--<script type="text/javascript" src="${ctx}/plugin/mune/hoverIntent.js"></script>-->
<#--<script type="text/javascript" src="${ctx}/plugin/mune/superfish.js"></script>-->
<body>
<div>
    <div class="top-title">
        <span>项目开工 / Project Start</span>

    </div>
    <div class="add-main">
        <form id="form" name="form" class="form-horizontal" method="post"
              action="/projectManage/addProject"
              enctype="multipart/form-data">
        <#--<input id="dataUrl" value="${dataUrl}" type="hidden"/>-->
            <section class="">
                <div class="form-layer-group clearfix">
                    <input type="hidden" id="dataUrl" value="${dataUrl}"/>
                    <div class="main-two">
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">项目名称：</label>
                            <input name="caption"
                                   placeholder="请输入项目名称" maxlength="100"
                                   class="input-medium2 form-control m-b" id="caption"/>

                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">项目简称：</label>
                            <input name="cap"
                                   placeholder="请输入项目简称" maxlength="50"
                                   class="input-medium2 form-control m-b" id="cap"/>

                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">项目编号：</label>
                            <input name="projectCode"
                                   placeholder="请输入项目编号" maxlength="50"
                                   class="input-medium2 form-control m-b" id="projectCode"/>

                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">项目类型：</label>
                            <select name="proTypeId" id="proTypeId" class="input-medium2 form-control m-b"
                                    style="text-align: center;height: 36px;">

                            </select>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">项目等级：</label>
                            <select name="proDegreeId" id="proDegreeId" class="input-medium2 form-control m-b"
                                    style="text-align: center;height: 34px;">
                            </select>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">开始时间：</label>
                            <input class="enabledtime input-medium2 form-control" name="stime" id="stime"
                                   placeholder="请输入开始时间"
                                   onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'#F{$dp.$D(\'etime\')}'})"/>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">引用的EPS：</label>

                            <input id="epsId" name="epsId" value="" type="hidden"/>
                         <#--   <div style="width: 235px;float: left">
                                <a href="javascript:checkedEps()"">选择EPS</a>
                                <span id="epsText"
                                      style="width: 140px;  display: inline-block;margin: 5px;"></span>
                            </div>-->
                        <div style="width: 235px;float: left" id="epsDiv">
                            <#--<div style="display: none" id="epsDiv" &lt;#&ndash;class="tree"&ndash;&gt;>-->
                            <#--<a href="javascript:checkedInspectPerson()"">选择检查人</a>-->
                                <ul class="sf-menu" id="nav">
                                <li class="current"><a href="#">请选择</a>
                                <ul class="sf-menu" id="nav">
                                        <#if treeMenu ??>
                                            <#macro bpTree children>
                                                <#if children?? && children?size gt 0>
                                                    <#list children as child>
                                                        <#if child.children?? && child.children?size gt 0>
                                                            <li class="current"><#--<i class='icon-minus-sign'></i>--> <a class="dropdown-toggle"
                                                                                   href="javascript:checkEps('${child.eps.id}','${child.eps.caption}',1)">
                                                  <span
                                                          id="checkColor${child.eps.id}" dataId="${child.eps.id}"
                                                          class="menu-text">${child.eps.caption} </span>
                                                                <#if child.children?? && child.children?size gt 0>
                                                                <i class="right-icon"></i>
                                                                </#if>
                                                            </a>
                                                                <ul class="sf-menu" id="nav${child.eps.id}">

                                                                    <@bpTree children=child.children />
                                                                </ul>
                                                            </li>
                                                        <#else>
                                                            <li class="current"><#--<i class=''></i>-->
                                                                <a href="javascript:checkEps('${child.eps.id}', '${child.eps.caption}', 2)">
                                                                    <b class="wj-fa"> </b> <span
                                                                        id="checkColor${child.eps.id}"
                                                                        dataId="${child.eps.id}"
                                                                        class="menu-text">${child.eps.caption} </span></a>
                                                            </li>
                                                        </#if>
                                                    </#list>
                                                </#if>
                                            </#macro>
                                            <!-- 调用宏 生成递归树 -->
                                            <@bpTree children=treeMenu />
                                        </#if>
                                </ul>
                                </li>
                                </ul>

                              <span id="epsText"
                                    style="width: 140px;  display: inline-block;margin: 5px;margin-top: -20px;font-size: 15px"></span>
                            </div>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">结束时间：</label>
                        <#--<input type="text" class="input-medium2 form-control m-b" id="endTime" value=""/>-->
                            <input class="enabledtime input-medium2 form-control" name="etime" id="etime"
                                   placeholder="请输入结束时间"
                                   onfocus="WdatePicker({skin:'twoer',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'stime\')}'})"/>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">创建者：</label>
                        <#--<input type="text" class="input-medium2 form-control m-b" id="startTime" value=""/>-->
                            <input class="enabledtime input-medium2 form-control"
                                   placeholder="请输入创建者" value="${personName}" disabled
                            />
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">创建时间：</label>
                        <#--<input type="text" class="input-medium2 form-control m-b" id="endTime" value=""/>-->
                            <input class="enabledtime input-medium2 form-control"
                                   value="${today}"
                                   disabled
                            />
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">所在地区：</label>
                        <#--   <select name="zoneId" id="zoneId" class="input-medium2 form-control m-b"
                                   style="text-align: center;height: 36px">
                           </select>-->
                            <input type="hidden" value="" name="zoneId" id="zoneId"/>
                           <#-- <div style="width: 235px;float: left">
                                <a href="javascript:checkedZone()"">选择地区</a>
                                <span id="zoneName"
                                      style="width: 140px;  display: inline-block;margin: 5px;"></span>
                            </div>-->
                            <div style="width: 235px;float: left" id="zoneDiv">
                            <#--<div style="display: none" id="zoneDiv">-->
                                <ul class="sf-menu" id="nav">
                                    <li class="current"><a href="#">请选择</a>
                                        <ul class="sf-menu" id="nav">
                                <#if zoneTreeList ??>
                                    <#macro bpTree children>
                                        <#if children?? && children?size gt 0>
                                            <#list children as child>
                                                <#if child.children?? && child.children?size gt 0>
                                                    <li class="current"><a class="dropdown-toggle"
                                                                           href="javascript:checkZone('${child.zone.id}','${child.zone.caption}',1)">
                                                  <span
                                                          id="checkColor${child.zone.id}" dataId="${child.zone.id}"
                                                          class="menu-text">${child.zone.caption} </span>
                                                     <#if child.children?? && child.children?size gt 0>
                                                                <i class="right-icon"></i>
                                                     </#if>
                                                    </a>
                                                        <ul class="sf-menu" id="nav${child.zone.id}">

                                                            <@bpTree children=child.children />
                                                        </ul>
                                                    </li>
                                                <#else>
                                                    <li class="current">
                                                        <a href="javascript:checkZone('${child.zone.id}', '${child.zone.caption}', 2)">
                                                            <b class="wj-fa"> </b> <span
                                                                id="checkColor${child.zone.id}"
                                                                dataId="${child.zone.id}"
                                                                class="menu-text">${child.zone.caption} </span></a>
                                                    </li>
                                                </#if>
                                            </#list>
                                        </#if>
                                    </#macro>
                                    <!-- 调用宏 生成递归树 -->
                                    <@bpTree children=zoneTreeList />
                                </#if>

                                        </ul>
                                    </li>
                                </ul>
                                <span id="zoneName"
                                      style="width: 140px;  display: inline-block;margin: 5px;"></span>
                            </div>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">联系方式：</label>
                        <#--<input type="text" class="input-medium2 form-control m-b" id="startTime" value=""/>-->
                            <input class="enabledtime input-medium2 form-control" name="contactInfo" id="contactInfo"
                                   placeholder="请输入联系方式"
                            />
                        </div>

                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">备注：</label>
                            <input name="memo"
                                   placeholder="请输入备注" maxlength="50"
                                   class="input-medium2 form-control m-b" id="memo"/>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2">审核人：</label>
                            <select name="checker" id="checker" class="input-medium2 form-control m-b"
                                    style="text-align: center;height: 36px">

                            </select>
                        </div>
                        <input type="hidden" id="corpPropCorpIds" name="corpPropCorpIds" value=""/>
                    <#--<div style="width: 770px;height: 10px"></div>-->
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2 ">单位性质：</label>
                            <select name="corpPropId" id="corpPropId1" class="corp-prop input-medium2 form-control m-b"
                                    onchange="getCorpList(this.options[this.options.selectedIndex].value,1)"
                                    style="text-align: center;height: 36px">
                            <#--  <option value="2">建管单位</option>
                                <option value="5">施工单位</option>
                                <option value="4">监理单位</option>-->
                            </select>
                        </div>
                        <div class="form-group-div form-layer-input clearfix">
                            <label class="control-label2 ">单位名称：</label>
                            <select name="corpId" id="corpId1" class="input-medium2 form-control m-b corp-name"

                                    style="text-align: center;height: 36px">
                            </select>

                        </div>
                        <div id="addCorp" style="text-align: center;padding:1px 0px;margin-right: 20px;float: left "
                             class="main-btn-div">
                        <#--<span style="display: inline-block; width: 10px;height: 10px">+</span>-->
                            <img src="/images/jia.jpg" onclick="addXZDW()" height="15px" width="15px">
                        </div>
                    <#-- <div class="form-group-div form-layer-input clearfix">
                         <label class="control-label2">项目状态：</label>
                         <select name="status" class="input-medium2 form-control m-b" style="text-align: center;height: 36px">
                             <option value="3">再用</option>
                             <option value="1">停用</option>
                             <option value="2">关闭</option>
                         </select>
                     </div>-->
                    </div>
                    <div style="text-align: center;padding:12px 0px;margin-right: 20px " class="main-btn-div">
                        <button type="button" class="cancel btn btn-cancel">取消</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;
                        <button type="submit" id="submitButton" class="btn btn-main">添加</button>
                    </div>
                </div>
            </section>
        </form>
    </div>
</div>
</body>
<script type="text/javascript" src="${ctx}/js/project/add.js"></script>
</html>
